<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>qredisclient: RedisClient::Command Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">qredisclient
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>RedisClient</b></li><li class="navelem"><a class="el" href="class_redis_client_1_1_command.html">Command</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_redis_client_1_1_command-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">RedisClient::Command Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_redis_client_1_1_command.html" title="The Command class. ">Command</a> class.  
 <a href="class_redis_client_1_1_command.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="command_8h_source.html">command.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aa33eeec32377914a2ff3a63ce3ba1339"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa33eeec32377914a2ff3a63ce3ba1339"></a>
typedef std::function&lt; void(<a class="el" href="class_redis_client_1_1_response.html">Response</a>, QString)&gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Callback</b></td></tr>
<tr class="separator:aa33eeec32377914a2ff3a63ce3ba1339"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af803b3f39fcd40971d1856c133a67c2b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af803b3f39fcd40971d1856c133a67c2b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#af803b3f39fcd40971d1856c133a67c2b">Command</a> ()</td></tr>
<tr class="memdesc:af803b3f39fcd40971d1856c133a67c2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs empty command. <br /></td></tr>
<tr class="separator:af803b3f39fcd40971d1856c133a67c2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96971dd3ece7a3802d4dfaf6ef952f77"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a96971dd3ece7a3802d4dfaf6ef952f77">Command</a> (const QList&lt; QByteArray &gt; &amp;cmd, int db=-1)</td></tr>
<tr class="memdesc:a96971dd3ece7a3802d4dfaf6ef952f77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs command with out callback.  <a href="#a96971dd3ece7a3802d4dfaf6ef952f77">More...</a><br /></td></tr>
<tr class="separator:a96971dd3ece7a3802d4dfaf6ef952f77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0210d9c3e093efbfa8f0296448cf0d28"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a0210d9c3e093efbfa8f0296448cf0d28">Command</a> (const QList&lt; QByteArray &gt; &amp;cmd, QObject *context, Callback callback, int db=-1)</td></tr>
<tr class="memdesc:a0210d9c3e093efbfa8f0296448cf0d28"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs command with callback.  <a href="#a0210d9c3e093efbfa8f0296448cf0d28">More...</a><br /></td></tr>
<tr class="separator:a0210d9c3e093efbfa8f0296448cf0d28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac92db47918b797fcc6a12dc39ba0b795"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac92db47918b797fcc6a12dc39ba0b795"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#ac92db47918b797fcc6a12dc39ba0b795">~Command</a> ()</td></tr>
<tr class="memdesc:ac92db47918b797fcc6a12dc39ba0b795"><td class="mdescLeft">&#160;</td><td class="mdescRight">~Command <br /></td></tr>
<tr class="separator:ac92db47918b797fcc6a12dc39ba0b795"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a414617f1edd3dcc4756f060846ece48c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_redis_client_1_1_command.html">Command</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a414617f1edd3dcc4756f060846ece48c">append</a> (const QByteArray &amp;part)</td></tr>
<tr class="memdesc:a414617f1edd3dcc4756f060846ece48c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append additional arg/part to command ("SET 1" + "2")  <a href="#a414617f1edd3dcc4756f060846ece48c">More...</a><br /></td></tr>
<tr class="separator:a414617f1edd3dcc4756f060846ece48c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11fc33153ef811085df55ce005ae4238"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a11fc33153ef811085df55ce005ae4238">getByteRepresentation</a> () const </td></tr>
<tr class="memdesc:a11fc33153ef811085df55ce005ae4238"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get command in RESP format.  <a href="#a11fc33153ef811085df55ce005ae4238">More...</a><br /></td></tr>
<tr class="separator:a11fc33153ef811085df55ce005ae4238"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0df5d27557e972c9b38cf7cf780bb6b2"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a0df5d27557e972c9b38cf7cf780bb6b2">getRawString</a> (int limit=200) const </td></tr>
<tr class="memdesc:a0df5d27557e972c9b38cf7cf780bb6b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get source command as single string.  <a href="#a0df5d27557e972c9b38cf7cf780bb6b2">More...</a><br /></td></tr>
<tr class="separator:a0df5d27557e972c9b38cf7cf780bb6b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a623043488e186dd65089ffa65a76bd84"><td class="memItemLeft" align="right" valign="top">QList&lt; QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a623043488e186dd65089ffa65a76bd84">getSplitedRepresentattion</a> () const </td></tr>
<tr class="memdesc:a623043488e186dd65089ffa65a76bd84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get source command as list of args.  <a href="#a623043488e186dd65089ffa65a76bd84">More...</a><br /></td></tr>
<tr class="separator:a623043488e186dd65089ffa65a76bd84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2efd7b57d28d46a0a5a79b58e90768b9"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a2efd7b57d28d46a0a5a79b58e90768b9">getPartAsString</a> (int i)</td></tr>
<tr class="memdesc:a2efd7b57d28d46a0a5a79b58e90768b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get specific argument/part of the command.  <a href="#a2efd7b57d28d46a0a5a79b58e90768b9">More...</a><br /></td></tr>
<tr class="separator:a2efd7b57d28d46a0a5a79b58e90768b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e6bb365c775b344c0724ec1f45c809f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a3e6bb365c775b344c0724ec1f45c809f">getDbIndex</a> () const </td></tr>
<tr class="memdesc:a3e6bb365c775b344c0724ec1f45c809f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get database index where this command should be executed.  <a href="#a3e6bb365c775b344c0724ec1f45c809f">More...</a><br /></td></tr>
<tr class="separator:a3e6bb365c775b344c0724ec1f45c809f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa586a20d499e33ecdc8962174fb7e099"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#aa586a20d499e33ecdc8962174fb7e099">hasDbIndex</a> () const </td></tr>
<tr class="memdesc:aa586a20d499e33ecdc8962174fb7e099"><td class="mdescLeft">&#160;</td><td class="mdescRight">hasDbIndex  <a href="#aa586a20d499e33ecdc8962174fb7e099">More...</a><br /></td></tr>
<tr class="separator:aa586a20d499e33ecdc8962174fb7e099"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ca57f14ace34bb7e6782aeb92017b76"><td class="memItemLeft" align="right" valign="top">QObject *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a8ca57f14ace34bb7e6782aeb92017b76">getOwner</a> () const </td></tr>
<tr class="memdesc:a8ca57f14ace34bb7e6782aeb92017b76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get callback context.  <a href="#a8ca57f14ace34bb7e6782aeb92017b76">More...</a><br /></td></tr>
<tr class="separator:a8ca57f14ace34bb7e6782aeb92017b76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e85031f53252b280f04188e3684740c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a0e85031f53252b280f04188e3684740c">setCallBack</a> (QObject *context, Callback callback)</td></tr>
<tr class="memdesc:a0e85031f53252b280f04188e3684740c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set context and callback.  <a href="#a0e85031f53252b280f04188e3684740c">More...</a><br /></td></tr>
<tr class="separator:a0e85031f53252b280f04188e3684740c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bc09f62e829db4a834676f2b3b5b272"><td class="memItemLeft" align="right" valign="top">Callback&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a4bc09f62e829db4a834676f2b3b5b272">getCallBack</a> () const </td></tr>
<tr class="memdesc:a4bc09f62e829db4a834676f2b3b5b272"><td class="mdescLeft">&#160;</td><td class="mdescRight">getCallBack  <a href="#a4bc09f62e829db4a834676f2b3b5b272">More...</a><br /></td></tr>
<tr class="separator:a4bc09f62e829db4a834676f2b3b5b272"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6b2467afe7b802669b3ea81733abd3b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#ae6b2467afe7b802669b3ea81733abd3b">hasCallback</a> () const </td></tr>
<tr class="memdesc:ae6b2467afe7b802669b3ea81733abd3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">hasCallback  <a href="#ae6b2467afe7b802669b3ea81733abd3b">More...</a><br /></td></tr>
<tr class="separator:ae6b2467afe7b802669b3ea81733abd3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa676b67844daa151a53b562b8d14ecaa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa676b67844daa151a53b562b8d14ecaa"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#aa676b67844daa151a53b562b8d14ecaa">markAsHiPriorityCommand</a> ()</td></tr>
<tr class="memdesc:aa676b67844daa151a53b562b8d14ecaa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mark this command as High Priority command. <a class="el" href="class_redis_client_1_1_command.html" title="The Command class. ">Command</a> will be added to the begining of the <a class="el" href="class_redis_client_1_1_connection.html" title="The Connection class Main client class. ">Connection</a> queue instead of end. <br /></td></tr>
<tr class="separator:aa676b67844daa151a53b562b8d14ecaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1d2524480734ad60be734ea9d30ee3a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#ae1d2524480734ad60be734ea9d30ee3a">isHiPriorityCommand</a> () const </td></tr>
<tr class="memdesc:ae1d2524480734ad60be734ea9d30ee3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">isHiPriorityCommand  <a href="#ae1d2524480734ad60be734ea9d30ee3a">More...</a><br /></td></tr>
<tr class="separator:ae1d2524480734ad60be734ea9d30ee3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d96fd461b48e784f8fc425b023653d2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a2d96fd461b48e784f8fc425b023653d2">isValid</a> () const </td></tr>
<tr class="memdesc:a2d96fd461b48e784f8fc425b023653d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">isValid  <a href="#a2d96fd461b48e784f8fc425b023653d2">More...</a><br /></td></tr>
<tr class="separator:a2d96fd461b48e784f8fc425b023653d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10337a6e14e98a0f6f77d03abce4e22b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a10337a6e14e98a0f6f77d03abce4e22b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isEmpty</b> () const </td></tr>
<tr class="separator:a10337a6e14e98a0f6f77d03abce4e22b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae703913bc6b5e55b11bc2e8efb5c0ae3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae703913bc6b5e55b11bc2e8efb5c0ae3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isScanCommand</b> () const </td></tr>
<tr class="separator:ae703913bc6b5e55b11bc2e8efb5c0ae3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc65d723d7e7552f4ae950fb65cd99b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8cc65d723d7e7552f4ae950fb65cd99b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isSelectCommand</b> () const </td></tr>
<tr class="separator:a8cc65d723d7e7552f4ae950fb65cd99b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a109d7bdcbf1ac53f82c8fa009ad36c36"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a109d7bdcbf1ac53f82c8fa009ad36c36"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isSubscriptionCommand</b> () const </td></tr>
<tr class="separator:a109d7bdcbf1ac53f82c8fa009ad36c36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80093cf708b137a319e3d34fc735907f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80093cf708b137a319e3d34fc735907f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isUnSubscriptionCommand</b> () const </td></tr>
<tr class="separator:a80093cf708b137a319e3d34fc735907f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a36d4f65e3a25d3b06c68d43b693894d5"><td class="memItemLeft" align="right" valign="top">static QList&lt; QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_redis_client_1_1_command.html#a36d4f65e3a25d3b06c68d43b693894d5">splitCommandString</a> (const QString &amp;)</td></tr>
<tr class="memdesc:a36d4f65e3a25d3b06c68d43b693894d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse command from raw string. Useful for CLI clients.  <a href="#a36d4f65e3a25d3b06c68d43b693894d5">More...</a><br /></td></tr>
<tr class="separator:a36d4f65e3a25d3b06c68d43b693894d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a0970e75c41e70f99bcda24786b37df88"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0970e75c41e70f99bcda24786b37df88"></a>
QObject *&#160;</td><td class="memItemRight" valign="bottom"><b>m_owner</b></td></tr>
<tr class="separator:a0970e75c41e70f99bcda24786b37df88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6d2384e9e9eefadc259488ab7b5909e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac6d2384e9e9eefadc259488ab7b5909e"></a>
QList&lt; QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_commandWithArguments</b></td></tr>
<tr class="separator:ac6d2384e9e9eefadc259488ab7b5909e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cb1c95abd58e80c3f5fab170ef809b4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0cb1c95abd58e80c3f5fab170ef809b4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_dbIndex</b></td></tr>
<tr class="separator:a0cb1c95abd58e80c3f5fab170ef809b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab702a5d368e8e2120056bef8565f8164"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab702a5d368e8e2120056bef8565f8164"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_hiPriorityCommand</b></td></tr>
<tr class="separator:ab702a5d368e8e2120056bef8565f8164"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53ccd42de9471aded4aea7e98036bddd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a53ccd42de9471aded4aea7e98036bddd"></a>
Callback&#160;</td><td class="memItemRight" valign="bottom"><b>m_callback</b></td></tr>
<tr class="separator:a53ccd42de9471aded4aea7e98036bddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_redis_client_1_1_command.html" title="The Command class. ">Command</a> class. </p>
<p>This class is part of Public API but should be used directly only for advanced cases. </p>
</div><div class="dynheader">
Inheritance diagram for RedisClient::Command:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_redis_client_1_1_command.png" usemap="#RedisClient::Command_map" alt=""/>
  <map id="RedisClient::Command_map" name="RedisClient::Command_map">
<area href="class_redis_client_1_1_scan_command.html" alt="RedisClient::ScanCommand" shape="rect" coords="0,56,165,80"/>
</map>
 </div></div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a96971dd3ece7a3802d4dfaf6ef952f77"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RedisClient::Command::Command </td>
          <td>(</td>
          <td class="paramtype">const QList&lt; QByteArray &gt; &amp;&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>db</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs command with out callback. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd</td><td>- <a class="el" href="class_redis_client_1_1_command.html" title="The Command class. ">Command</a> parts </td></tr>
    <tr><td class="paramname">db</td><td>- Database index where this command should be executed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0210d9c3e093efbfa8f0296448cf0d28"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RedisClient::Command::Command </td>
          <td>(</td>
          <td class="paramtype">const QList&lt; QByteArray &gt; &amp;&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Callback&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>db</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs command with callback. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd</td><td>- <a class="el" href="class_redis_client_1_1_command.html" title="The Command class. ">Command</a> parts </td></tr>
    <tr><td class="paramname">context</td><td>- QObject, command will be canceled if this object destroyed </td></tr>
    <tr><td class="paramname">callback</td><td>- Callback for response processing </td></tr>
    <tr><td class="paramname">db</td><td>- Database index where this command should be executed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a414617f1edd3dcc4756f060846ece48c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_redis_client_1_1_command.html">RedisClient::Command</a> &amp; RedisClient::Command::append </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>part</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Append additional arg/part to command ("SET 1" + "2") </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">part</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to current object </dd></dl>

</div>
</div>
<a class="anchor" id="a11fc33153ef811085df55ce005ae4238"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray RedisClient::Command::getByteRepresentation </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get command in RESP format. </p>
<dl class="section return"><dt>Returns</dt><dd>QByteArray </dd></dl>

</div>
</div>
<a class="anchor" id="a4bc09f62e829db4a834676f2b3b5b272"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RedisClient::Command::Callback RedisClient::Command::getCallBack </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>getCallBack </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a3e6bb365c775b344c0724ec1f45c809f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int RedisClient::Command::getDbIndex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get database index where this command should be executed. </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a8ca57f14ace34bb7e6782aeb92017b76"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QObject * RedisClient::Command::getOwner </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get callback context. </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a2efd7b57d28d46a0a5a79b58e90768b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString RedisClient::Command::getPartAsString </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get specific argument/part of the command. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a0df5d27557e972c9b38cf7cf780bb6b2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray RedisClient::Command::getRawString </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>limit</em> = <code>200</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get source command as single string. </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a623043488e186dd65089ffa65a76bd84"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QByteArray &gt; RedisClient::Command::getSplitedRepresentattion </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get source command as list of args. </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="ae6b2467afe7b802669b3ea81733abd3b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool RedisClient::Command::hasCallback </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>hasCallback </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="aa586a20d499e33ecdc8962174fb7e099"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool RedisClient::Command::hasDbIndex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>hasDbIndex </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="ae1d2524480734ad60be734ea9d30ee3a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool RedisClient::Command::isHiPriorityCommand </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>isHiPriorityCommand </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a2d96fd461b48e784f8fc425b023653d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool RedisClient::Command::isValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>isValid </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a0e85031f53252b280f04188e3684740c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RedisClient::Command::setCallBack </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Callback&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set context and callback. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td></td></tr>
    <tr><td class="paramname">callback</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a36d4f65e3a25d3b06c68d43b693894d5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QByteArray &gt; RedisClient::Command::splitCommandString </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>rawCommand</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Parse command from raw string. Useful for CLI clients. </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_redis_client_1_1_command.html" title="The Command class. ">Command</a> parts as list. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/maker/projects/rdm/3rdparty/qredisclient/src/qredisclient/<a class="el" href="command_8h_source.html">command.h</a></li>
<li>/home/maker/projects/rdm/3rdparty/qredisclient/src/qredisclient/command.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
